//
//  SimDatePicker.h
//
//  Created by XubinLiu.
//

#import <UIKit/UIKit.h>
#import "SimDefine.h"

typedef NS_ENUM(NSInteger, SimDateLabel){
    SDL_Year,
    SDL_Month,
    SDL_Day,
    SDL_Hour,
    SDL_Minute,
};

typedef void (^DidSelectDateBlock)(NSArray *values);

@interface SimDatePicker : UIView<UIPickerViewDelegate,UIPickerViewDataSource>

@property (nonatomic, strong, readonly) NSArray *dateLables;
@property (nonatomic, strong, readonly) NSDate *minLimitDate;
@property (nonatomic, strong, readonly) NSDate *maxLimitDate;

@property (nonatomic, strong) NSDate *scrollToDate;//滚到指定日期
@property (nonatomic, strong) FinishBlock cancelBlock;
@property (nonatomic, strong) FinishBlock doneBlock;
@property (nonatomic, strong) DidSelectDateBlock didSelectDateBlock;


- (id)initWithDateLables:(NSArray *)dateLbs minDate:(NSDate *)minDate maxDate:(NSDate *)maxDate;


@end
